package day03;

public class OperDemo1 {
    //算数运算符
    public static void main(String[] args) {
        // a++ ++a区别
        /*
        int a=5,b=5;
        int c = a++;
        int d = ++b;
        System.out.println(a); //6
        System.out.println(b); //6
        System.out.println(c); //5
        System.out.println(d); //6
        */

        // a-- --a区别
        /*
        int a=5,b=5;
        int e = a--;
        int f = --b;
        System.out.println(a); //4
        System.out.println(b); //4
        System.out.println(e); //5
        System.out.println(f); //4
        */

        
    }
}
